package com.dq.service.messsge;

import com.dq.exception.customException.AdminException;
import com.dq.domain.message.oneself.Message;

import java.util.List;

/**
 * @author cf
 *
 * 岗位逻辑
 *
 */
public interface MessageService {

    /**
     * 查看
     * @param id
     * @return
     * @throws AdminException
     */
    public void look(Long id, String type) throws AdminException;

    public List<Message> messageListSql(String searchType, String theme, List messageTypes, Long userId, Long orgId, Long beginSearchTime, Long endSearchTime, Integer page, Integer pagesize);
    public Long messageCountSql(String searchType, String theme, List messageTypes, Long userId, Long orgId, Long beginSearchTime, Long endSearchTime);

    public List<Message> messageListSqlApi(String theme, List messageTypes, Long userId, Long beginSearchTime, Long endSearchTime, Integer page, Integer pagesize);
    public Long messageCountSqlApi(String theme, List messageTypes, Long userId, Long beginSearchTime, Long endSearchTime);
}
